package com.yuebao.event;

import com.yuebao.response.PayAsynDTO;
import com.yuebao.utils.JsonUtils;

public class  EventDTOConvert {
   
   public static EventDTO transferPayAsynDTOToEventDTO(EventType eventType, PayAsynDTO payAsynDTO){
      
      return EventDTO.builder()
              .msg(JsonUtils.writeValueAsString(payAsynDTO))
              .type(eventType)
              .build();
   }
}
